package com.jia.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jia.dto.admin.UserDto;
import com.jia.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jia.vo.admin.DepositUserVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
* @author 贾天旺
* @description 针对表【t_user】的数据库操作Mapper
* @createDate 2024-04-26 14:49:12
* @Entity com.jia.entity.User
*/
public interface UserMapper extends BaseMapper<User> {

    Page<DepositUserVo> depositUser(@Param("depositUserPage") Page<DepositUserVo> depositUserPage, @Param("userDto") UserDto userDto);

    @Update("update t_deposit_user set state=1 where id=#{id}")
    void deleteUserDeposit(int id);

}




